{include file="common/_meta"}
<title>用户查看</title>
</head>
<body>
<div class="cl pd-20" style=" background-color:#5bacb6">
  <!--<img class="avatar size-XL l" src="/static/h-ui/images/user.png">-->
  <dl style="margin-left:80px; color:#fff">
    <dt><span class="f-18">{$user.name}</span> <span class="pl-10 f-12">性别:{$user.sex}</span></dt>
    <!--<dd class="pt-10 f-12" style="margin-left:0">这家伙很懒，什么也没有留下</dd>-->
  </dl>
</div>
<div class="pd-20">
  <table class="table">

      <tr>
          <td>用户余额</td>
          <td>{$user.score}</td>
      </tr>

      <tr>
          <td>提现金额</td>
          <td><input name="score" class="score" type="number" /></td>
      </tr>

      <tr>
          <td colspan="2">
              <button onclick="go()">提交</button>
          </td>
      </tr>
  </table>
</div>

<script>
    function go() {
        $.post(window.location.href,{score:$(".score").val()},function (data) {
            if (data.status==1){
                $.Huimodalalert("提现成功",1000);
                setTimeout(function(){window.location.reload()},1000)
            }else{
                $.Huimodalalert(data.error,1000);
            }
        })
    }
</script>
{include file="common/_footer"}


</body>
</html>